import pixellib
from pixellib.instance import instance_segmentation
import time
segment_image = instance_segmentation()
segment_image.load_model("mask_rcnn_coco.h5")
start = time.time()
segment_image.segmentImage("22.jpeg", output_image_name = "22new.jpg")
end = time.time()
print(f"Inference Time: {end-start:.2f}seconds")

